<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>表单</title>
		<link rel="stylesheet" type="text/css" href="css/scrollbar.css"/>
		<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	</head>
	<body>
		<div class="container">
			<ol class="breadcrumb">
			  <li><a href="#">首页</a></li>
			  <li><a href="#">商品模块</a></li>
			  <li class="active">添加商品类别</li>
			</ol>
			<form action="" class="form-horizontal">
				<!-- 
				 <div class="form-group">
				     <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
				     <div class="col-sm-10">
				       <input type="email" class="form-control" id="inputEmail3" placeholder="Email">
				     </div>
				  </div>
				  -->
				<div class="form-group">
					<label class="col-sm-2 control-label" for="category_name">分类名称 : </label>
					<div class="col-sm-10">
						<input class="form-control" type="text" placeholder="请输入分类名称" id="category_name">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="parent_category">
						上级分类 :
					</label>
					<div class="col-sm-10">
						<select class="form-control" id="parent_category">
							<option>分类一</option>
							<option selected="selected">分类二</option>
							<option>分类三</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="unit">
						数量单位 :
					</label>
					<div class="col-sm-10">
						<input class="form-control" type="text" id="unit">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="sort_value">
						排序值 :
					</label>
					<div class="col-sm-10">
						<input class="form-control" type="text" id="sort_value">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">是否显示 : </label>
					<div class="col-sm-10">
						<label class="radio-inline">
						  <input type="radio" name="display" value="yes"> 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="display" value="no"> 否
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-sm-2">是否显示在导航栏 : </label>
					<div class="col-sm-10">
						<label class="radio-inline">
							<input type="radio" name="show_in_nav"> 是
						</label>
						<label class="radio-inline">
							<input type="radio" name="show_in_nav"> 否
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="category_icon">分类图标</label>
					<div class="col-sm-10">
						<!-- 可以用一个button来冒充一下input[type=file], 因为file元素不便于美化 -->
						<button type="button" class="btn btn-primary" onclick="category_icon.click()">选择文件</button>
						<!-- 真正的file元素就可以用display:none隐藏起来 -->
						<input style="display: none;" type="file" id="category_icon">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="attr_filter">筛选属性 : </label>
					<div class="col-sm-10">
						<div class="row">
							<div class="col-sm-4">
								<select class="form-control" id="attr_filter">
									<option value="">筛选属性</option>
								</select>
							</div>
							<div class="col-sm-4">
								<button class="btn btn-danger" type="button">删除属性</button>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-10">
						<button class="btn btn-info" type="button">新增属性</button>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="tags">关键词 : </label>
					<div class="col-sm-10">
						<input class="form-control" type="text" id="tags">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="category_description">分类描述 : </label>
					<div class="col-sm-10">
						<textarea class="form-control" id="category_description"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-10">
						<button class="btn btn-primary" type="submit">提交</button>
						<button class="btn btn-warning" type="reset">重置</button>
					</div>
				</div>
			</form>
		</div>
	</body>
</html>
